module.exports = function($scope, $state, $stateParams, $modalInstance, $resource,$modal,FileUploader,id,flag,toaster){
    console.log(id,flag);
    $scope.flag = flag;
    $scope.company_code = '';
	$scope.info = {
        'id' : id
    }
    $scope.cancel = function(){
		$modalInstance.close();
	}
    $scope.companyCode = function () {
        var para = {
        };
        $resource('/api/as/info', {}, {}).
        save(para,function (res) {
           if(res == 'undefined'){
            return;
           }
            console.log(res);
            $scope.company_code = res.company_code;
        });   
       
    };
    $scope.companyCode();


};